<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap-responsive.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/style2.css" type="text/css" media="all" />
     <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/demo.css" type="text/css" media="all" />
    
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/bootstrap.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/ckform.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/common.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/showdate.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/laydate/laydate.js"></script>
   	<script src="${pageContext.request.contextPath}/static/js/zoom.js"></script>
   	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/Validform_v4.0_min.js"></script>

</head>
<body class="main" class="wraper">


<form:form method="post" commandName="exp" class="registerform"  enctype="multipart/form-data">
	<form:hidden path="id" />
		<table class="table table-bordered table-hover definewidth m10" style="margin-left:3%;margin-top:2%;">		
	 	<tr> 		
        	<td width="10%" class="tableleft" >*活动名称 </td>
        	<td><form:input path="activtiyName" style="height: 41px; width: 300px" datatype="*"  nullmsg="活动名称不能为空！"/></td>
      		<td><div class="Validform_checktip"></div></td>
    	</tr>
		<tr>
        	<td width="10%" class="tableleft" >*活动开始时间</td>
        	<td><form:input path="activtiyStartTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon" datatype="*" nullmsg="上传时间不能为空!"/></td>
    	</tr>
    	<tr>
        	<td width="10%" class="tableleft" >*活动结束时间</td>
       		<td><form:input path="activtiyEndTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon" datatype="*" nullmsg="活动开始时间不能为空!"/></td>
    	</tr>
     	<tr> 		
        	<td width="10%" class="tableleft" >*活动地址 </td>
        	<td><form:input path="activityAddress" style="height: 41px; width: 300px" datatype="*"  nullmsg="活动地点不能为空！"/></td>
      		<td><div class="Validform_checktip"></div></td>
    	</tr>
    	<tr> 		
        	<td width="10%" class="tableleft" >*活动地址经度 </td>
        	<td><form:input path="activityAddressLng" style="height: 41px; width: 300px" datatype="*"  nullmsg="活动地点经度不能为空！"/></td>
      		
    	</tr>
    	<tr> 		
        	<td width="10%" class="tableleft" >*活动地址纬度 </td>
        	<td><form:input path="activityAddressLat" style="height: 41px; width: 300px" datatype="*"  nullmsg="活动地点纬度不能为空不能为空！"/></td>
      		
    	</tr>
    	<tr> 		
        	<td width="10%" class="tableleft" >*活动人数 </td>
        	<td><form:input path="activtiyCount" style="height: 41px; width: 300px" datatype="*"  nullmsg="活动人数不能为空！"/></td>
      		<td><div class="Validform_checktip"></div></td>
    	</tr>
    	<tr> 		
        	<td width="10%" class="tableleft" >*活动排序 </td>
        	<td><form:input path="activtiySequence" style="height: 41px; width: 300px" datatype="*"  nullmsg="活动排序不能为空！"/></td>
      		
    	</tr>
    	<%-- <tr>
        	<td class="tableleft">*适用人群</td>
        	<td> 
        		<div style="margin:0 auto;">
        			 <form:select path="activtiyUserRole">                    
                  <!--  <form:option value="0">不限</form:option>   -->
                   	<form:option value="0">不限</form:option>  
                   	<form:option value="1">男女1:1</form:option>  
                 	</form:select>  	            
             	</div> 
        	</td>
    	</tr>  --%>
    	 <tr>
        	<td class="tableleft">*活动发布状态</td>
        	<td> 
        		<div style="margin:0 auto;">
        			 <form:select path="activtiyState">                    
                  <!--  <form:option value="0">不限</form:option>   -->
                   	<form:option value="0">活动禁用</form:option>  
                   	<form:option value="1">活动启用</form:option>  
                 	</form:select>  	            
             	</div> 
        	</td>
    	</tr>  
    	<%-- <tr>
        <td class="tableleft">*需求</td>
        <td><div style="margin:0 auto;">
        		 <form:select path="activtiyDemandId">                    
                   <form:option value="0">不需要认证</form:option>  
                   <form:option value="1">图片认证</form:option>  
                   <form:option value="2">视频认证</form:option>  
                 </form:select>  
                  <input name="activtiyDemand" class="rt2" id="shoppingsite21" type="checkbox"  value="1" /><label for="shoppingsite21">图片认证</label>
                  <input name="activtiyVideoState" class="rt2" id="shoppingsite22" type="checkbox"  value="1" /><label for="shoppingsite22">图片认证</label>
                  <input name="" class="rt2" id="shoppingsite23" type="checkbox"  value="2" /><label for="shoppingsite23">视频认证</label>	            
            </div> 
        </td>
    </tr> --%>
	    <tr> 
		        <td width="10%" class="tableleft" >*活动介绍 </td>
		        <td><form:textarea  path="activtiyIntroduce" contenteditable="true" cssStyle="width: 500px;  
			    min-height: 120px; 
			    max-height: 300px;
			    _height: 120px; 
			    
			    padding: 3px; 
			    outline: 0; 
			    border: 1px solid #999999; 
			    font-size: 12px; 
			    word-wrap: break-word;
			    overflow-x: hidden;
			    overflow-y: auto;
			    _overflow-y: visible;"  datatype="*"  nullmsg="活动详情不能为空！" /></td>  
		</tr>
     <c:if test="${exp.activtiyImg1 != null or exp.activtiyImg2 != null or exp.activtiyImg3 != null}">
     <tr> 
     <td width="10%" class="tableleft" >活动图片</td>
     <c:if test="${exp.activtiyImg1 != null}">
     	<td><img src="${exp.activtiyImg1}" data-action="zoom" width="334px" /><br>
     </c:if>
     <c:if test="${exp.activtiyImg2 != null}">
     <img src="${exp.activtiyImg2}" data-action="zoom" width="334px" /><br>
     </c:if>
     <c:if test="${exp.activtiyImg3 != null}">
     <img src="${exp.activtiyImg3}" data-action="zoom" width="334px" />
     </c:if>
     </td>
     </tr>   
    </c:if> 
   	 	<c:if test="${op != '删除'}">    
    	 <tr>
        	<td class="tableleft">*上传活动图片</td>
        	<td>图片1：<input type="file" name="files"  /><br> 
        	图片2：<input type="file" name="files"  /><br> 
        	图片3：<input type="file" name="files"  /><br>                        
    	</tr>
   		 </c:if> 	
    	<tr>
        	<td class="tableleft"></td>
        	<td>
           		<form:button>${op}</form:button>             
       		</td>
    	</tr>
	</table>
</form:form>
</body>
<script type="text/javascript">
$(function(){
	//$(".registerform").Validform();  //就这一行代码！;
	
	$(".registerform").Validform({
		tiptype:1
	});
})
</script>
</html>
<script>
function jump(){
 window.location.href="placardQuery.html";
}
</script>